package com.wxzhou.wangzhuan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class WzUser {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime created_at;

    /**
     * 等级
     */
    private Integer level;

    /**
     * 邀请码
     */
    private String in_code;

    /**
     * 父级ID
     */
    private Long pid;

    /**
     * 分享路径
     */
    private String share_path;

    /**
     * 设备ID
     */
    private String device_id;

    /**
     * 渠道
     */
    private String channel;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nick_name;

    /**
     * 备注
     */
    private String remark;

    /**
     * 头像
     */
    private String cover;

    /**
     * 角色ID
     */
    private Long role_id;

    /**
     * 子账号最大数量
     */
    private Long child_max_count;

    /**
     * 是否主账号
     */
    private Boolean is_main;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 微信
     */
    private String wechat;

    /**
     * 微信二维码
     */
    private String wechat_qrcode;

    /**
     * 支付系统账户ID
     */
    private String paysystem_account_id;

    /**
     * 是否启用
     */
    private Boolean is_enable;

    /**
     * 是否可提现
     */
    private Boolean is_withdrawal;

    public WzUser() {
    }

    // Getters and Setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getCreated_at() {
        return created_at;
    }

    public void setCreated_at(LocalDateTime created_at) {
        this.created_at = created_at;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getIn_code() {
        return in_code;
    }

    public void setIn_code(String in_code) {
        this.in_code = in_code;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getShare_path() {
        return share_path;
    }

    public void setShare_path(String share_path) {
        this.share_path = share_path;
    }

    public String getDevice_id() {
        return device_id;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Long getRole_id() {
        return role_id;
    }

    public void setRole_id(Long role_id) {
        this.role_id = role_id;
    }

    public Long getChild_max_count() {
        return child_max_count;
    }

    public void setChild_max_count(Long child_max_count) {
        this.child_max_count = child_max_count;
    }

    public Boolean getIs_main() {
        return is_main;
    }

    public void setIs_main(Boolean is_main) {
        this.is_main = is_main;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getWechat_qrcode() {
        return wechat_qrcode;
    }

    public void setWechat_qrcode(String wechat_qrcode) {
        this.wechat_qrcode = wechat_qrcode;
    }

    public String getPaysystem_account_id() {
        return paysystem_account_id;
    }

    public void setPaysystem_account_id(String paysystem_account_id) {
        this.paysystem_account_id = paysystem_account_id;
    }

    public Boolean getIs_enable() {
        return is_enable;
    }

    public void setIs_enable(Boolean is_enable) {
        this.is_enable = is_enable;
    }

    public Boolean getIs_withdrawal() {
        return is_withdrawal;
    }

    public void setIs_withdrawal(Boolean is_withdrawal) {
        this.is_withdrawal = is_withdrawal;
    }
}